export const DEAFULT_IMG_LIST = [
  {
    poster: `https://mcdn.chatgk.com/manage_imgs/share_scroll_1.png`,
    id: 10,
  },
  {
    poster: `https://mcdn.chatgk.com/manage_imgs/share_scroll_2.png`,
    id: 20,
  },
  {
    poster: `https://mcdn.chatgk.com/manage_imgs/share_scroll_3.png`,
    id: 30,
  },
  {
    poster: `https://mcdn.chatgk.com/manage_imgs/share_scroll_4.png`,
    id: 40,
  },
  {
    poster: `https://mcdn.chatgk.com/manage_imgs/share_scroll_5.png`,
    id: 50,
  },
  // {
  //     poster: `https://mcdn.chatgk.com/manage_imgs/share_scroll_6.png`,
  //     id: 60
  // },
  {
    poster: `https://mcdn.chatgk.com/manage_imgs/share_scroll_7.png`,
    id: 70,
  },
  {
    poster: `https://mcdn.chatgk.com/manage_imgs/share_scroll_8.png`,
    id: 80,
  },
  {
    poster: `https://mcdn.chatgk.com/manage_imgs/share_scroll_9.png`,
    id: 90,
  },
  {
    poster: `https://mcdn.chatgk.com/manage_imgs/share_scroll_10.png`,
    id: 100,
  },
];

export const uniqueArr = (arr) => {
  return arr.reduce((result, obj) => {
    if (!result.some((item) => JSON.stringify(item) === JSON.stringify(obj))) {
      result.push(obj);
    }
    return result;
  }, []);
};
